<?php
//加密方式：php源码混淆类加密。免费版地址:http://www.zhaoyuanma.com/phpjm.html 免费版不能解密,可以使用VIP版本。
//此程序由【找源码】http://Www.ZhaoYuanMa.Com (免费版）在线逆向还原，QQ：7530782 
?>
﻿<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">

<?php
require 'connect.php'; require 'siteinfo.php'; ?>
<html>
<head>


</style><head><body>
<meta name="baidu-site-verification" content="gFRNXpjoF8" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<p>
  <style type="text/css">
<!--
<!--html5 speedup-->
<style>
::-webkit-scrollbar{width:8px}
::-webkit-scrollbar-track-piece{background-color:#d2d2d2}
::-webkit-scrollbar-thumb{background:#888;}
::-webkit-scrollbar-thumb:hover{background-color:#999;}
#grid {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -11;
margin: 0;
padding: 0;
overflow: hidden;
background: url() repeat;
}
body,td,th {
	font-family: Georgia, Times New Roman, Times, serif;
}
a {
	font-family: Courier New, Courier, monospace;
	color: #6600FF;
}
a:visited {
	color: #000000;
	text-decoration: none;
}
a:hover {
	color: #000000;
	text-decoration: underline;
}
a:active {
	color: #000000;
	text-decoration: none;
}
a:link {
	color: #000000;
	text-decoration: none;
}
.STYLE30 {color: #000000}
.STYLE32 {font-size: small}
.STYLE33 {color: #000000; font-size: small; }
</style>
<div class="container">
  <p>
    <script src="http://libs.baidu.com/jquery/1.9.1/jquery.min.js"></script> 
    <script src="http://lib.sinaapp.com/js/bootstrap/2.3.1/js/bootstrap.min.js"></script>
    <script src="http://cdnjs.bootcss.com/ajax/libs/jquery-backstretch/2.0.3/jquery.backstretch.min.js"></script>
    <script>



	// Create an array of images that you'd like to use
var images = ["http://img.ivsky.com/img/bizhi/pic/201304/26/caise_guangban-014.jpg","http://img.ivsky.com/img/bizhi/pic/201304/26/caise_guangban-017.jpg","http://b.zol-img.com.cn/desk/bizhi/image/5/1440x900/1409624128806.jpg","http://img.ivsky.com/img/bizhi/pic/201304/26/caise_guangban-014.jpg","http://b.zol-img.com.cn/desk/bizhi/image/5/1440x900/1409021422417.jpg"];
	
	// A little script for preloading all of the images
	// It's not necessary, but generally a good idea
	$(images).each(function(){
	   $('<img/>')[0].src = this; 
	});
	
	// The index variable will keep track of which image is currently showing
	var index = 0;
	
	// Call backstretch for the first time,
	// In this case, I'm settings speed of 500ms for a fadeIn effect between images.
	$.backstretch(images[index], {speed: 1000});
	
	// Set an interval that increments the index and sets the new image
	// Note: The fadeIn speed set above will be inherited
	setInterval(function() {
		index = (index >= images.length - 1) ? 0 : index + 1;
		$.backstretch(images[index]);
	}, 10000);




function down(id)
{
	$("#msg").html('Download starting ,Please Wait.');
	$("#msgbox").fadeIn();
	htmlobj=$.ajax({url:"d.php?act=down&id="+id,async:false});
	if(htmlobj.responseText!="error")
	{
	location=htmlobj.responseText;
	$("#msgbox").fadeOut();
	
	}
	else
	{
		$("#msg").html("Download error ,Please try again.");
		$("#msgbox").fadeIn();
		
	}
}

 // popover demo
    $("a[data-toggle=popover]")
      .popover()
      .click(function(e) {


        e.preventDefault()
      })
  </script>
    </marquee>

<title>管理员系统</title>
<link rel="stylesheet" type="text/css" href="css/register.css"/>
</head>
<body class='body'>
<?php
date_default_timezone_set('PRC'); $password=$_GET['pass']; if ($password!=$adminpass) { echo '<div class="signup_container"><h1 class="signup_title">登录后台</h1><br/><div class="orgg"><form action="guoke.php" medhod="get">管理员密码:<br><br><input type="password" name="pass" value=""><br>
<br><input type="submit" value="登录后台"></form></div>'; include('foot.php'); exit; }else{ if($_GET['my']=='test'){ $test_qq=$_GET['qq']; if($_GET['qq']==$test_qq){ $test_sql=mysql_query("SELECT * FROM qqlist WHERE qq='$test_qq'"); $test_row=mysql_fetch_array($test_sql); if($test_row['sid']==''){ echo '<div class="signup_container"><br>该QQ不存在</div>'; require'foot.php'; exit; }else{ $url='http://ish.z.qq.com/infocenter_v2.jsp?B_UID='.$test_qq.'&sid='.$test_row["sid"].'&g_ut=1'; $yz_get=file_get_contents($url); if(strstr($yz_get,'个人中心')){ echo '<div class="signup_container"><br>你的SID正常~</div>'; require'foot.php'; exit; }else{ echo '<div class="signup_container"><br>你的SID失效了~</div>'; require'foot.php'; exit; } } } } if($_GET['my']=='qq'){ echo '<div class="signup_container"><h1 class="signup_title">查询QQ</h1><br><form method="get" action="guoke.php"><div class="orgg">QQ:<br><br><input type="hidden" name="pass" value="'.$password.'"><input type="hidden" name="my" value="search"><input type="text" name="qq"><br><br><input type="submit" value="查询"></div></form>'; echo '<br><br><div class="blue"><a href="guoke.php?pass='.$password.'">返回后台</a></div></div>'; exit; } if($_GET['my']=='user'){ echo '<div class="signup_container"><h1 class="signup_title">查询用户名</h1><br><form method="get" action="guoke.php"><div class="orgg">用户名:<br><br><input type="hidden" name="pass" value="'.$password.'"><input type="hidden" name="my" value="search"><input type="text" name="user"><br><br><input type="submit" value="查询"></div></form>'; echo '<br><br><div class="blue"><a href="guoke.php?pass='.$password.'">返回后台</a></div></div>'; exit; } if($_GET['my']=='edituser'){ echo '<div class="signup_container"><h1 class="signup_title">查询用户资料</h1><br><form method="get" action="guoke.php"><div class="orgg">用户名:<br><br><input type="hidden" name="pass" value="'.$password.'"><input type="hidden" name="my" value="tedituser"><input type="text" name="user"><br><br><input type="submit" value="查询"></div></form>'; echo '<br><br><div class="blue"><a href="guoke.php?pass='.$password.'">返回后台</a></div></div>'; exit; } if($_GET['my']=='alluser'){ echo '<div class="signup_container"><h1 class="signup_title">所有用户</h1>'; $pagesize=20; $rs=mysql_query("select count(*) from user where vip>0",$connect); $myrow = mysql_fetch_array($rs); $numrows=$myrow[0]; $pages=intval($numrows/$pagesize); if ($numrows%$pagesize) { $pages++; } if (isset($_GET['page'])){ $page=intval($_GET['page']); } else{ $page=1; } $offset=$pagesize*($page - 1); $rs=mysql_query("select * from user where vip>0 order by id desc limit $offset,$pagesize",$connect); if ($myrow = mysql_fetch_array($rs)) { $i=0; do { $i++; $peie=$myrow['peie']+$chushi; $pagesl=$i+($page-1)*$pagesize; echo '<div class="orgg">用户 '.$i.' <br>建立者：'.$myrow['user'].'<br>注册日期：'.$myrow['start'].'<br>到期日期：'.$myrow['end'].'<br>VIP等级：'.$myrow['vip'].'<br>挂Q数/配额：'.$myrow['qqnum'].'/'.$peie.'<br><a href="guoke.php?pass='.$password.'&my=edit&user='.$myrow['user'].'&type=main">编辑</a>&nbsp|&nbsp<a href="guoke.php?pass='.$password.'&my=deleteuser&user='.$myrow['user'].'">删除用户</a></div><hr>'; } while ($myrow =mysql_fetch_array($rs)); } echo "<div class='org'>共有 ".$pages." 页(".$page."/".$pages.")<br>"; for ($i=1;$i<$page;$i++) echo "<a href='guoke.php?pass=".$password."&my=alluser&page=".$i."'>[".$i ."]</a> "; echo "[".$page."]"; for ($i=$page+1;$i<=$pages;$i++) echo "<a href='guoke.php?pass=".$password."&my=alluser&page=".$i."'>[".$i ."]</a> "; echo '<br>'; $first=1; $prev=$page-1; $next=$page+1; $last=$pages; if ($page>1) { echo "<a href='guoke.php?pass=".$password."&my=alluser&page=".$first."'>首页</a>."; echo "<a href='joblist.php?password=".$password."&my=alluser&page=".$prev."'>上一页</a>."; } if ($page<$pages) { echo "<a href='guoke.php?pass=".$password."&my=alluser&page=".$next."'>下一页</a>."; echo "<a href='guoke.php?pass=".$password."&my=alluser&page=".$last."'>尾页</a></div>"; } echo '<a href="guoke.php?pass='.$password.'">返回后台</a>'; echo '</div></div>'; exit; } if($_GET['my']=='addkm'){ function getkm($len=12){ $str ='abcdefghijklmnopqrstuvwxyz0123456789'; $strlen = strlen($str); $randstr = ''; for ($i = 0; $i<$len; $i++){ $randstr .= $str[mt_rand(0, $strlen-1)]; } return $randstr; } $num=is_numeric($_POST['num'])?$_POST['num']:'1'; $ms=is_numeric($_POST['ms'])?$_POST['ms']:'1'; if($_POST['type']){ $type=1; }else{ $type=0; } echo '<div class="pagebg"><div class="body"><div class="signup_container"><h1 class="signup_title">生成激活码</h1>'; echo'成功生成以下激活码<br><br>'; for($i=0;$i<$num;$i++){ $newkm=getkm(); $now=date("Y-m-d H:i:s"); mysql_query("insert into km(km,isuse,addtype,ms,addtime)values('$newkm',0,'$type','$ms','$now')"); echo $newkm.'<br><br>'; } if($_GET['type']){ $type='peie'; }else{ $type='jihuoma'; } echo '<br><br><div class="blue"><a href="?pass='.$password.'&my='.$type.'">返回激活码</a></div></div>'; exit(); } if($_GET['my']=='delkm'){ $delect_kid=$_GET['kid']; echo '<div class="pagebg"><div class="body"><div class="signup_container"><h1 class="signup_title">删除激活码</h1>'; $delete_sql="delete from km where kid='$delect_kid'"; if(mysql_query($delete_sql)){ echo '<br><font size=4>激活码: '.$delect_kid.' 删除成功！</font><br><br>'; }else{ echo '<br><font size=4>卡密: '.$delect_kid.' 删除失败！</font><br><br>'; } if($_GET['type']){ $type='peie'; }else{ $type='jihuoma'; } echo '<br><br><div class="blue"><a href="?pass='.$password.'&my='.$type.'">返回激活码</a></div></div>'; exit; } if($_GET['my']=='jihuoma'){ echo '<div class="pagebg"><div class="body"><div class="signup_container"><h1 class="signup_title">所有激活码</h1>'; $pagesize=20; $rs=mysql_query("select count(*) from km where addtype=0",$connect); $myrow = mysql_fetch_array($rs); $numrows=$myrow[0]; $pages=intval($numrows/$pagesize); if ($numrows%$pagesize) { $pages++; } if (isset($_GET['page'])){ $page=intval($_GET['page']); } else{ $page=1; } $offset=$pagesize*($page - 1); $rs=mysql_query("select * from km where addtype=0 order by kid desc limit $offset,$pagesize",$connect); echo'<div class="orgg"><form action="?pass='.$password.'&my=addkm" method="post">激活码个数：<input type="text" name="num" value="1"><br>激活码月数：<input type="text" name="ms" value="1"><br><br><input type="submit" value="生成激活码"></form></div><hr>'; if ($myrow = mysql_fetch_array($rs)) { do { $peie=$myrow['peie']+$chushi; $pagesl=$i+($page-1)*$pagesize; echo '<div class="orgg">激活码 '.$myrow[km].' <br>生成时间：'.$myrow['addtime'].'<br>激活月数：'.$myrow[ms].'月<br>是否使用：'; if($myrow[isuse]){ echo'已使用<br>使用者ID：'.$myrow[uid],'<br>使用时间：'.$myrow[usetime].'<br>'; }else{ echo'未使用<br>'; } echo '<br><a href="?pass='.$password.'&my=delkm&kid='.$myrow[kid].'">删除此激活码</a></div><hr>'; } while ($myrow =mysql_fetch_array($rs)); } echo "<div class='org'>共有 ".$pages." 页(".$page."/".$pages.")<br>"; for ($i=1;$i<$page;$i++) echo "<a href='?pass=".$password."&my=jihuoma&page=".$i."'>[".$i ."]</a> "; echo "[".$page."]"; for ($i=$page+1;$i<=$pages;$i++) echo "<a href='?pass=".$password."&my=jihuoma&page=".$i."'>[".$i ."]</a> "; echo '<br>'; $first=1; $prev=$page-1; $next=$page+1; $last=$pages; if ($page>1) { echo "<a href='?pass=".$password."&my=jihuoma&page=".$first."'>首页</a>."; echo "<a href='joblist.php?password=".$password."&my=jihuoma&page=".$prev."'>上一页</a>."; } if ($page<$pages) { echo "<a href='?pass=".$password."&my=jihuoma&page=".$next."'>下一页</a>."; echo "<a href='?pass=".$password."&my=jihuoma&page=".$last."'>尾页</a></div>"; } echo '<br><br><div class="blue"><a href="vip.php?pass='.$password.'" class="label label-success">返回后台</a></div></div>'; exit; } if($_GET['my']=='notvipuser'){ echo '<div class="signup_container"><h1 class="signup_title">所有非VIP用户</h1>'; $pagesize=20; $rs=mysql_query("select count(*) from user where vip=0",$connect); $myrow = mysql_fetch_array($rs); $numrows=$myrow[0]; $pages=intval($numrows/$pagesize); if ($numrows%$pagesize) { $pages++; } if (isset($_GET['page'])){ $page=intval($_GET['page']); } else{ $page=1; } $offset=$pagesize*($page - 1); $rs=mysql_query("select * from user where vip=0 order by id desc limit $offset,$pagesize",$connect); if ($myrow = mysql_fetch_array($rs)) { $i=0; do { $i++; $peie=$myrow['peie']+$chushi; $pagesl=$i+($page-1)*$pagesize; echo '<div class="orgg">用户 '.$i.' <br>建立者：'.$myrow['user'].'<br>注册日期：'.$myrow['start'].'<br>到期日期：'.$myrow['end'].'<br>VIP等级：'.$myrow['vip'].'<br>挂Q数/配额：'.$myrow['qqnum'].'/'.$peie.'<br><a href="guoke.php?pass='.$password.'&my=edit&user='.$myrow['user'].'&type=main">编辑</a>&nbsp|&nbsp<a href="guoke.php?pass='.$password.'&my=deleteuser&user='.$myrow['user'].'">删除用户</a></div><hr>'; } while ($myrow =mysql_fetch_array($rs)); } echo "<div class='org'>共有 ".$pages." 页(".$page."/".$pages.")<br>"; for ($i=1;$i<$page;$i++) echo "<a href='guoke.php?pass=".$password."&my=notvipuser&page=".$i."'>[".$i ."]</a> "; echo "[".$page."]"; for ($i=$page+1;$i<=$pages;$i++) echo "<a href='guoke.php?pass=".$password."&my=notvipuser&page=".$i."'>[".$i ."]</a> "; echo '<br>'; $first=1; $prev=$page-1; $next=$page+1; $last=$pages; if ($page>1) { echo "<a href='guoke.php?pass=".$password."&my=notvipuser&page=".$first."'>首页</a>."; echo "<a href='joblist.php?password=".$password."&my=notvipuser&page=".$prev."'>上一页</a>."; } if ($page<$pages) { echo "<a href='guoke.php?pass=".$password."&my=notvipuser&page=".$next."'>下一页</a>."; echo "<a href='guoke.php?pass=".$password."&my=notvipuser&page=".$last."'>尾页</a></div>"; } echo '<a href="guoke.php?pass='.$password.'">返回后台</a>'; echo '</div></div>'; exit; } if($_GET['my']=='timeoutuser'){ $today=date('Y-m-d'); $timeout=date('Y-m-d',strtotime('+5 day')); $user_sql="select * from user where end<='$timeout'&&end>='$today'"; $user_result=mysql_query($user_sql); $count_user=@mysql_num_rows($user_result); echo '<div class="signup_container"><h1 class="signup_title">五天内到期的用户</h1>'; while($user_back=mysql_fetch_array($user_result)){ $i++; $peie=$user_back['peie']+$chushi; echo '<div class="orgg">用户 '.$i.'<br>建立者:'.$user_back['user'].'<br>注册日期:'.$user_back['start'].'<br>到期日期:'.$user_back['end'].'<br>VIP等级：'.$user_back['vip'].'<br>挂Q数/配额:'.$user_back['qqnum'].'/'.$peie.'<br><br><a href="guoke.php?pass='.$password.'&my=edit&user='.$user_back['user'].'&type=main">编辑</a>&nbsp|&nbsp<a href="guoke.php?pass='.$password.'&my=deleteuser&user='.$user_back['user'].'">删除</a></div><hr>'; } echo '<div class="blue"><a href="guoke.php?pass='.$password.'">返回后台</a></div></div>'; exit(); } if($_GET['my']=='tedituser'){ $user=$_GET['user']; $mysql_user = mysql_query("SELECT * FROM user WHERE user='$user'"); $sql_user= mysql_fetch_array($mysql_user); $peieshu=$chushi+$sql_user['peie']; echo '<div class="signup_container"><h1 class="signup_title">'.$user.'用户资料</h1><br><br>'; echo '用户名：'.$sql_user['user'].'<br>邮箱：'.$sql_user['email'].'<br>注册日期：'.$sql_user['start'].'<br>到期日期：'.$sql_user['end'].'<br>VIP等级：'.$sql_user['vip'].'<br>挂Q数目/配额：'.$sql_user['qqnum'].'/'.$peieshu.'个'; echo '<br><br><a href="guoke.php?pass='.$password.'&my=edit&user='.$sql_user['user'].'&type=main">编辑</a>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<a href="guoke.php?pass='.$password.'&my=deleteuser&user='.$sql_user['user'].'">删除用户</a>'; echo '<br><br><div class="blue"><a href="guoke.php?pass='.$password.'">返回后台</a></div></div>'; exit; } if($_GET['my']=='search'){ if(isset($_GET['qq'])){ $search_qq=$_GET['qq']; $qq_sql="select * from qqlist where qq='$search_qq'"; $qq_result=mysql_query($qq_sql); $count_qq=@mysql_num_rows($qq_result); echo '<div class="signup_container"><h1 class="signup_title">查询QQ</h1>'; while($qq_back=mysql_fetch_array($qq_result)){ $i++; echo '<div class="orgg">任务 '.$i.' <br>建立者:'.$qq_back['myqq'].'<br>QQ:'.$qq_back['qq'].'<br>SID:'.$qq_back['sid'].'<br>服务器:'.$qq_back['fwq'].'<br>秒评内容:'.$qq_back['pinglun'].'<br><a href="guoke.php?pass='.$password.'&my=edit&user='.$qq_back['myqq'].'&type=main">编辑</a>&nbsp|&nbsp<a href="guoke.php?pass='.$password.'&my=delete&qq='.$qq_back['qq'].'">删除QQ</a></div><hr>'; } echo '<div class="blue"><a href="guoke.php?pass='.$password.'&my=qq">返回查询</a> <a href="guoke.php?pass='.$password.'">返回后台</a></div></div>'; exit; }else if(isset($_GET['user'])){ $search_user=$_GET['user']; $user_sql="select * from qqlist where myqq='$search_user'"; $user_result=mysql_query($user_sql); $count_user=@mysql_num_rows($user_result); echo '<div class="signup_container"><h1 class="signup_title">查询用户名</h1>'; while($user_back=mysql_fetch_array($user_result)){ $i++; echo '<div class="orgg">任务 '.$i.'<br>建立者:'.$user_back['myqq'].'<br>QQ:'.$user_back['qq'].'<br>SID:'.$user_back['sid'].'<br><a href="guoke.php?pass='.$password.'&my=edit&user='.$user_back['myqq'].'&type=main">编辑</a>&nbsp|&nbsp<a href="guoke.php?pass='.$password.'&my=delete&qq='.$user_back['qq'].'">删除QQ</a></div><hr>'; } echo '<div class="blue"><a href="guoke.php?pass='.$password.'&my=user">返回查询</a> <a href="guoke.php?pass='.$password.'">返回后台</a></div></div>'; exit(); } } if($_GET['my']=='edit'){ $user=$_GET['user']; $mysql = mysql_query("SELECT * FROM user WHERE user='$user'"); $sql= mysql_fetch_array($mysql); $date=date('Y-m-d'); $type=$_GET['type']; if($type==main){ echo '<div class="signup_container"><h1 class="signup_title">'.$sql["user"].'的编辑界面</h1><br><br>'; echo '<center>今天日期：'.$date.'</center>'; echo '<center>购买日期：'.$sql["start"].'</center>'; echo '<center>到期日期：'.$sql["end"].'</center>'; $peie=$chushi+$sql["peie"]; echo '<center>挂Q数目/配额：'.$sql["qqnum"].'/'.$peie.'&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</center>'; echo '<center>VIP等级：'.$sql["vip"].'&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</center><br>'; echo '<form method="get" action="guoke.php"><input type="hidden" name="pass" value="'.$password.'"><input type="hidden" name="my" value="edit"><input type="hidden" name="user" value="'.$user.'">'; echo '修改到期时间<br><input type="text" name="end" value="'.$sql["end"].'"><br><br>'; echo '修改挂Q配额<br><input type="text" name="peieshu" value="'.$peie.'"><br><br>'; echo '<input type="hidden" name="vip" value="1"><input type="submit" name="submit" value="更新资料">'; echo '<br><br><br><center><a href="guoke.php?pass='.$password.'">返回后台</a></center></div>'; exit(); } if($_GET['submit']){ $end=$_GET['end']; $peieshu=$_GET['peieshu']; if($peieshu<$chushi) { echo '<div class="signup_container"><h1 class="signup_title">输入数值太小！</h1><br>输入数值太小，小于系统默认值，请重新输入<br><br><center><a href="guoke.php?pass='.$password.'&my=edit&user='.$sql['user'].'&type=main">返回用户中心</a></center></div>'; include 'foot.php'; exit(); } $peieshu1=$peieshu-$chushi; $vip=$_GET['vip']; if($vip<'0') { echo '<div class="signup_container"><h1 class="signup_title">输入数值太小！</h1><br>输入数值太小，小于最低等级，请重新输入<br><br><center><a href="guoke.php?pass='.$password.'&my=edit&user='.$sql['user'].'&type=main">返回用户中心</a></center></div>'; include 'foot.php'; exit(); } $xiugai_end="update user set end='$end' where user='$user'"; $xiugai_peie="update user set peie='$peieshu1' where user='$user'"; $xiugai_vip="update user set vip='$vip' where user='$user'"; if(mysql_query($xiugai_end)&&mysql_query($xiugai_peie)&&mysql_query($xiugai_vip)){ echo '<div class="signup_container"><h1 class="signup_title">修改到期时间</h1><br>用户资料更新成功！<br>'.$user.'的到期时间修改为'.$end.'<br>'.$user.'的挂Q配额修改为'.$peieshu.'<br><br><center><a href="guoke.php?pass='.$password.'&my=edit&user='.$sql['user'].'&type=main">返回设置中心</a></center></div>'; exit(); }else{ echo '<div class="signup_container"><h1 class="signup_title">修改到期时间</h1><br>到期时间修改失败，请稍后重试<br><br><center><a href="guoke.php?pass='.$password.'&my=edit&user='.$sql['user'].'&type=main">返回设置中心</a></center></div>'; exit(); } } if($_GET['submit_peie']){ if($peieshu<$chushi) { echo '<div class="signup_container"><h1 class="signup_title">输入数值太小！</h1><br>输入数值太小，小于系统默认值，请重新输入<br><br><center><a href="guoke.php?pass='.$password.'&my=edit&user='.$sql['user'].'&type=main">返回用户中心</a></center></div>'; include 'foot.php'; exit(); } $peieshu1=$peieshu-$chushi; $xiugai_sql="update user set peie='$peieshu1' where user='$user'"; if(mysql_query($xiugai_sql)){ echo '<div class="signup_container"><h1 class="signup_title">修改挂Q配额</h1><br>挂Q配额修改成功，'.$user.'的挂Q配额修改为'.$peieshu.'<br><br><center><a href="guoke.php?pass='.$password.'&my=edit&user='.$sql['user'].'&type=main">返回设置中心</a></center></div>'; exit(); }else{ echo '<div class="signup_container"><h1 class="signup_title">修改挂Q配额</h1><br>挂Q配额修改失败，请稍后重试<br><br><center><a href="set.php?qid='.$qid.'">返回设置中心</a></center></div>'; exit(); } } if($_GET['submit_vip']){ if($vip<'0') { echo '<div class="signup_container"><h1 class="signup_title">输入数值太小！</h1><br>输入数值太小，小于最低等级，请重新输入<br><br><center><a href="guoke.php?pass='.$password.'&my=edit&user='.$sql['user'].'&type=main">返回用户中心</a></center></div>'; include 'foot.php'; exit(); } $xiugai_sql="update user set vip='$vip' where user='$user'"; if(mysql_query($xiugai_sql)){ echo '<div class="signup_container"><h1 class="signup_title">修改VIP等级</h1><br>VIP等级修改成功，'.$user.'的VIP等级修改为<font color=red>VIP'.$vip.'</font><br><br><center><a href="guoke.php?pass='.$password.'&my=edit&user='.$sql['user'].'&type=main">返回设置中心</a></center></div>'; exit(); }else{ echo '<div class="signup_container"><h1 class="signup_title">修改VIP等级</h1><br>VIP等级修改失败，请稍后重试<br><br><center><a href="set.php?qid='.$qid.'">返回设置中心</a></center></div>'; exit(); } } } if($_GET['my']=='delete'){ $delect_qq=$_GET['qq']; if($_GET['qq']==$delect_qq){ $delete_sql="delete from qqlist where qq='$delect_qq'"; if(mysql_query($delete_sql)){ echo '<div class="signup_container"><br>QQ: '.$delect_qq.' 删除成功!</div>'; require'foot.php'; exit(); }else{ echo '<div class="signup_container"><br>QQ: '.$delect_qq.' 删除失败!</div>'; require'foot.php'; exit(); } } } if($_GET['my']=='deleteuser'){ $user=$_GET['user']; $mysql= mysql_query("SELECT * FROM user WHERE user='$user'"); $sql= mysql_fetch_array($mysql); echo '<div class="signup_container"><h1 class="signup_title">确认删除用户</h1>'; echo '<br>你要删除的用户为'.$sql['user'].'<br>此用户有'.$sql['qqnum'].'个QQ正在使用'; echo '<br><br><center><a href="guoke.php?pass='.$password.'&my=tdeleteuser&user='.$sql['user'].'">确认删除用户</a></center>'; echo '</div>'; exit(); } if($_GET['my']=='tdeleteuser'){ $delect_user=$_GET['user']; $delete_user="delete from user where user='$delect_user'"; $delete_qq="delete from qqlist where myqq='$delect_user'"; if(mysql_query($delete_user)&&mysql_query($delete_qq)){ echo '<div class="signup_container"><br>用户: '.$delect_user.' 删除成功!</div>'; require'foot.php'; exit(); }else{ echo '<div class="signup_container"><br>用户: '.$delect_user.' 删除失败!</div>'; require'foot.php'; exit(); } } $resultlist=mysql_query("SELECT * FROM qqlist WHERE 1"); $zongs=mysql_num_rows($resultlist); echo '<div class="signup_container"><h1 class="signup_title">所有记录</h1>'; echo '<div class="green"><a href="guoke.php?pass='.$password.'&my=qq">查询QQ</a>&nbsp&nbsp&nbsp&nbsp<a href="guoke.php?pass='.$password.'&my=user">查询用户名</a>&nbsp&nbsp&nbsp&nbsp<a href="guoke.php?pass='.$password.'&my=edituser">查询用户资料</a><br><br><a href="guoke.php?pass='.$password.'&my=alluser">VIP用户</a>&nbsp&nbsp&nbsp&nbsp<a href="guoke.php?pass='.$password.'&my=notvipuser">非VIP用户</a>&nbsp&nbsp&nbsp&nbsp<a href="guoke.php?pass='.$password.'&my=timeoutuser">5天内到期用户</a><br><br><a href="?pass='.$password.'&my=jihuoma" class="label label-info btn-block">激活码管理</a></div><hr>'; $pagesize=20; $rs=mysql_query("select count(*) from qqlist where 1",$connect); $myrow = mysql_fetch_array($rs); $numrows=$myrow[0]; $pages=intval($numrows/$pagesize); if ($numrows%$pagesize) { $pages++; } if (isset($_GET['page'])){ $page=intval($_GET['page']); } else{ $page=1; } $offset=$pagesize*($page - 1); $rs=mysql_query("select * from qqlist where 1 order by id desc limit $offset,$pagesize",$connect); if ($myrow = mysql_fetch_array($rs)) { $i=0; do { $i++; $resultad=mysql_query("SELECT *FROM user where user='$myrow[lx]'"); $roguoke=mysql_fetch_array($resultad); $pagesl=$i+($page-1)*$pagesize; echo '<div class="orgg">任务 '.$i.' <br>建立者:'.$myrow['myqq'].'<br>QQ:'.$myrow['qq'].'<br>SID:'.$myrow['sid'].'<br><a href="guoke.php?pass='.$password.'&my=test&qq='.$myrow['qq'].'">检测</a>&nbsp|&nbsp<a href="guoke.php?pass='.$password.'&my=edit&user='.$myrow['myqq'].'&type=main">编辑</a>&nbsp|&nbsp<a href="guoke.php?pass='.$password.'&my=delete&qq='.$myrow['qq'].'">删除QQ</a></div><hr>'; } while ($myrow =mysql_fetch_array($rs)); } echo "<div class='org'>共有 ".$pages." 页(".$page."/".$pages.")<br>"; for ($i=1;$i<$page;$i++) echo "<a href='guoke.php?pass=".$password."&page=".$i."'>[".$i ."]</a> "; echo "[".$page."]"; for ($i=$page+1;$i<=$pages;$i++) echo "<a href='guoke.php?pass=".$password."&page=".$i."'>[".$i ."]</a> "; echo '<br>'; $first=1; $prev=$page-1; $next=$page+1; $last=$pages; if ($page>1) { echo "<a href='guoke.php?pass=".$password."&page=".$first."'>首页</a>."; echo "<a href='joblist.php?password=".$password."&page=".$prev."'>上一页</a>."; } if ($page<$pages) { echo "<a href='guoke.php?pass=".$password."&page=".$next."'>下一页</a>."; echo "<a href='guoke.php?pass=".$password."&page=".$last."'>尾页</a></div>"; } echo '</div></div>'; require'foot.php'; } ?>